package com.luck.emp.entity;

import com.luck.org.entity.VDepartment;

/**
 * 说明:ENEITY类
 * Copyright: Copyright (c) 2011
 * 深圳**科技
 * @author 
 * 
 */
public class EmpTProdKind implements java.io.Serializable {
		/**
		 * pk
		 * 商品类别ID
		 **/
		Long id;
		/**
		 * 父类ID
		 **/
		Long parentId;
		EmpTProdKind parentKind;
		/**
		 * 所属机构
		 **/
		private Long deptId;
		private VDepartment dept;
		/**
		 * 名称
		 **/
		String name;
		/**
		 * 是否末级
		 **/
		String istail;
		/**
		 * TREE_NO：采用每一层次3码。
		 **/
		String treeNo;
	
	public EmpTProdKind(){
	}
	
		public Long getId(){
			return this.id;
		}		
		public void setId(Long id){
			this.id = id;
		}
		public String getName(){
			return this.name;
		}		
		public void setName(String name){
			this.name = name;
		}
		public String getIstail(){
			return this.istail;
		}		
		public void setIstail(String istail){
			this.istail = istail;
		}
		public String getTreeNo(){
			return this.treeNo;
		}		
		public void setTreeNo(String treeNo){
			this.treeNo = treeNo;
		}

		public Long getParentId() {
			return parentId;
		}

		public void setParentId(Long parentId) {
			this.parentId = parentId;
		}

		public EmpTProdKind getParentKind() {
			return parentKind;
		}

		public void setParentKind(EmpTProdKind parentKind) {
			this.parentKind = parentKind;
		}

		public String getIstailStr(){
			if(this.istail.equals("1"))
				return "是";
			else
				return "否";
		}

		public Long getDeptId() {
			return deptId;
		}

		public void setDeptId(Long deptId) {
			this.deptId = deptId;
		}

		public VDepartment getDept() {
			return dept;
		}

		public void setDept(VDepartment dept) {
			this.dept = dept;
		}

}